import { patch } from "./patch";
// 声明周期
export function lifecycleMixin(Vue) {
  // 更新视图
  Vue.prototype._update = function (vnode) {
    const vm = this;
    patch(vm.$el,vnode)
  };
}

export function mountComponent(vm) {
  vm._update(vm._render());
}
